<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="shortcut icon" href="/static/imges/favicon.ico" type="image/x-icon">
</head>
<body>
<div style="float: right;margin-right: 30px">
    <input type="button" onclick="logout()" value="退出登录"/>
</div>
<h3>首页</h3>
<div biaoshi="棋">
    <a href="/chess/toChess" target="_blank">象棋</a> <a href="/chess/toJq" target="_blank">揭棋</a>
</div>
<script src="/static/js/jquery-3.6.0.min.js"></script>

<script>
    //退出登录
    function logout() {
        $.ajax({
            url: "/logout",
            type: "get",
            success: function (result) {
                window.location.href = "/";
            }
        })
    }
</script>
</body>
</html>